text: Delete selection when preedit starts
authorMatthias Clasen <mclasen@redhat.com>
Thu, 4 Mar 2021 19:49:14 +0000 (14:49 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 4 Mar 2021 20:18:30 +0000 (15:18 -0500)
commit447203ce525ff95e916c6106818df2836c7d9b1f
tree135e8d2477dc27e2d6b1f466946488d1c25c6f0c
parentfeccdad9d2afcda75d87153c48d3bc0324fa4bd8
text: Delete selection when preedit starts

This prevents confusing misrendering when the preedit text
pushes the selection text out of the rendered selection.

Fixes: #1123
gtk/gtktext.c